<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="Keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" type="image/x-icon" href="/static/images/favicon.ico">

	<title>添加请假记录-请假管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
	<link href="/static/school/css/layout.css" type="text/css" rel="stylesheet" />
    <script src="/static/public/jquery-1.11.1.min.js" type="text/javascript"></script>
	<link href="/static/school/css/frame.style.css" type="text/css" rel="stylesheet" />
    <link href="/static/school/css/default.style.css" type="text/css" rel="stylesheet" />
    <link href="/static/public/layer/src/css/layui.css" rel="stylesheet">
	<script>
	$(function(){
		$("#btn_save").click(function(){
			$("form").submit();
		});
	})
	</script>
</head>
<body>
	<div class="wrap">
		<!--star left-->
		<div class="column">
			<{include file="left_menu.html"}>
		</div>
		<div id="ContMianBox">
			<!--star子栏目-->
			<div class="sub-colum">
                <div class="tit"><{$left_menu_min.menu}></div>
                <ul>
                    <{foreach from=$left_menu_min.list item=item}>
                    <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                    <{/foreach}>
                </ul>
            </div>
			<!--end子栏目-->
			
			<!--end left-->
			<div class="container narrow">
			    <!--star conter-->
			    <div class="cetContent">
					<div class="tit p-lr20">
						<span ><a href="/chuqin/today_class">今日上课</a></span>
						<span ><a href="/chuqin/today_signin">今日签到</a></span>
						<span class="curr">请假管理</span>
						<span ><a href="/chuqin/change_list">异动管理</a></span>
					</div>
					<!--star内容区域-->
					<div class="mainScroll">
					    <div class="mainContainer line-all">
					        
					        <div class="tabMainCont">

					            <!--star 编辑基本信息-->
					            <div class="tabItem step-02">

										<form action="/chuqin/leave_add" method="post" class="layui-form">
											
										<div class="layui-form-item">
									      <label class="layui-form-label">学员：</label>
									      <div class="layui-input-inline">
									        <select name="student_id" lay-verify="required" lay-search="">
									          <option value="">搜索学员</option>
									          <{if isset($student_list)}>
									          <{foreach from=$student_list item=item}>
									          <option value="<{$item['student_id']}>"><{$item['name']}></option>
									          <{/foreach}>
									          <{/if}>
									        </select>
									      </div>
									    </div>

										
										<div class="layui-form-item">
									    <label class="layui-form-label">所在班级：</label>
											<div class="layui-input-inline">
													<select name="class_id"  style="width: 500px;" lay-filter="campus" lay-verify="required">
													<option value="">所在班级</option>
													<{if isset($class_list)}>
													<{foreach from=$class_list item=item}>
													<option value="<{$item['id']}>"><{$item['class_name']}></option>
													<{/foreach}>
													<{/if}>
												</select>
									  	</div>

									
									  </div>
										
									  
										<div class="layui-form-item">
											<label class="layui-form-label">请假时间：</label>
											<div class="layui-input-inline">
												<input class="layui-input" name="start_date" required lay-verify="required" placeholder="开始日" id="LAY_demorange_s">
											</div>
											<div class="layui-form-mid">-</div>
											<div class="layui-input-inline">
												<input class="layui-input" name="end_date" required lay-verify="required" placeholder="截止日" id="LAY_demorange_e">
											</div>

										</div>
										
										<div class="layui-form-item layui-form-text">
										 <label class="layui-form-label">请假说明：</label>
										 <div class="layui-input-block">
											 <textarea placeholder="请假说明" style="width:500px"  name="remark" class="layui-textarea"><{if isset($remark)}><{$remark}><{/if}></textarea>
											 <{if isset($remark_err)}>
											 <i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
											 <{$remark_err}>
											 <{/if}>
										 </div>

										</div>

										<d
										<div class="layui-form-item">
										 <div class="layui-input-block">
											 <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
											 <button type="reset" class="layui-btn layui-btn-primary">取消</button>
										 </div>
										</div>


	            </form>
					            </div>
					            <!--end 编辑基本信息-->

					        </div>


					    </div>
					</div>
					</div>
					<!--end内容区域-->

		    <!--end conter-->
		</div>


	</div>
</div>
<{include file="footer.html"}>
<script>
	layui.use(['form','laydate','jquery'], function(){
		var laydate = layui.laydate;
		var form = layui.form(),$ = layui.jquery;

		var start = {
			min: laydate.now(-30)
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				end.min = datas; //开始日选好后，重置结束日的最小日期
				end.start = datas //将结束日的初始值设定为开始日
			}
		};

		var end = {
			min: laydate.now(-30)
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				start.max = datas; //结束日选好后，重置开始日的最大日期
			}
		};

		document.getElementById('LAY_demorange_s').onclick = function(){
			start.elem = this;
			laydate(start);
		}
		document.getElementById('LAY_demorange_e').onclick = function(){
			end.elem = this
			laydate(end);
		}

		


	});
</script>

</body>
</html>
